package com.controller.admin;

import com.business.bean.layuiBean.VoPage;
import com.business.bean.ztree.ZtreeBean;
import com.business.service.MenuResourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author 张子艺
 * @packge com.controller.admin
 * @data 2019-01-10 10:57
 * @project Currency
 */
@Controller
@RequestMapping("/menu")
public class MenuController {
    @Autowired
    MenuResourseService menuResourseService;
    @RequestMapping(value = "/findMenuZtree", method = RequestMethod.POST)
    @ResponseBody
    public List<ZtreeBean> findMenuZtree() {
        return  menuResourseService.findMenuZtree();
    }


}
